<template>
  <div class="box">
   
    <div class="area_box">
      <div class="nei"></div>
      <div class="wai"></div>
      <div class="content">
        <span class="num">{{props.data.parkNum}} </span>
        <span style="opacity: 0.8;">个</span>

      </div>
      <span class="text">总园数</span>
    </div>
    <div class="area_box">
      <div class="nei"></div>
      <div class="wai"></div>
      <div class="content">
        <span class="num">{{ props.data.manageMeasure }}</span>
        <span style="opacity: 0.8;">m²</span>

      </div>
      <span class="text">总管理面积</span>
    </div>
    <div class="area_box">
      <div class="nei"></div>
      <div class="wai"></div>
      <div class="content">
        <span class="num">{{props.data.rentableMeasure}}</span>
        <span style="opacity: 0.8;">m²</span>

      </div>
      <span class="text">总可租面积</span>
    </div>
    <div class="area_box">
      <div class="nei"></div>
      <div class="wai"></div>
      <div class="content">
        <span class="num">{{(props.data.rentableMeasure- props.data.rentingMeasure).toFixed(2) }}</span>
        <span style="opacity: 0.8;">m²</span>

      </div>
      <span class="text">待租面积</span>
    </div>
    <div class="area_box">
      <div class="nei"></div>
      <div class="wai"></div>
      <div class="content">
        <span class="num">{{ props.data.rentingMeasure }}</span>
        <span style="opacity: 0.8;">m²</span>

      </div>
      <span class="text">以出租面积</span>
    </div>
   
  
  </div>
</template>

<script setup>
const props = defineProps({
  data: {
    type: Object,
    default: () => {
      return {};
    },
  },
 
});
</script>

<style scoped>
.box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.area_box {
  position: relative;
  width: 134px;
  height: 148.01px;

  /* background-color: green; */
}
.wai {
  position: absolute;
  left: 11.24px;
  top: 8.83px;
 
  width: 112px;
  height: 116px;
  opacity: 1;

  background: url("../../img/wai.png");
  background-size: cover;
}
.nei {
  position: absolute;
  
  width: 134px;
  height: 135px;
  transform: rotate(55.72deg);
  opacity: 1;

  background: url("../../img/nei.png");
  background-size: cover;
}
.content{
    position: absolute;
    width: 100%;
    height: 40%;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 16px;
  
}
.num{
    font-size: 20px;
    font-weight: 400;
}
.text{
    position: absolute;
    width: 100%;
 
    bottom: -10px;
    display: flex;
    justify-content: center;
    /* left: 50%;
    transform:translateX(-50%); */
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    
}
</style>
